import { request } from '@/utils/service'

/**
 * This function sends a POST request to the login endpoint to authenticate the user
 * @param {Object} data - The data object containing the email and password of the user
 * @returns {Promise} - A promise that resolves to the response data or rejects with an error
 */
export const postLogin = (data) => request({ url: 'member/login', method: 'post', data })
